/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
/*
 * ---------------------------------------------------------------
 * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API        ##
 * ##                                                           ##
 * ## AUTHOR: acacode                                           ##
 * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
 * ---------------------------------------------------------------
 */

import {
  BindChatRoomRolesRequest,
  ChatRoomMessageInsertRequest,
  ChatRoomMessagePageRequest,
  ChatRoomPageRequest,
  ConversationCreateRequest,
  CreateChatRoomRequest,
  CreateKnowledgeBaseRequest,
  EmailLoginRequest,
  LoginRequest,
  MessageInsertRequest,
  NovelParseRequest,
  PageParam,
  RegisterRequest,
  ResetPasswordRequest,
  ResultBoolean,
  ResultConversationCreateVO,
  ResultListChatRoomRoleParticipationVO,
  ResultListChatRoomRoleVO,
  ResultListNovelCharacterSentence,
  ResultLong,
  ResultPageResultChatRoomMessageVO,
  ResultPageResultChatRoomVO,
  ResultPageResultConversationListVO,
  ResultPageResultKnowledgeBaseListVO,
  ResultPageResultMessageVO,
  ResultPageResultRoleAdminVo,
  ResultPageResultRoleVo,
  ResultPageResultUserOperationLogVO,
  ResultPageResultVoiceVo,
  ResultRetrieveKnowledgeBaseVO,
  ResultStatisticsVO,
  ResultString,
  ResultUserVO,
  ResultVoiceDetailVo,
  ResultVoid,
  RetrieveKnowledgeBaseRequest,
  RoleAddRequest,
  RolePageSearchDto,
  UpdateChatRoomRequest,
  UpdateUserRequest,
  UserOperationLogPageRequest,
  VoiceAddDto,
  VoicePageSearchDto,
} from "./data-contracts";
import { ContentType, HttpClient, RequestParams } from "./http-client";

export class Codewin<
  SecurityDataType = unknown,
> extends HttpClient<SecurityDataType> {
  /**
   * @description 管理员更新音色信息
   *
   * @tags 音色管理
   * @name UpdateVoice
   * @summary 更新音色信息
   * @request PUT:/codewin/voice/update/{id}
   * @secure
   */
  updateVoice = (id: number, data: VoiceAddDto, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/voice/update/${id}`,
      method: "PUT",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 管理员更新音色状态，0：禁用 1：正常
   *
   * @tags 音色管理
   * @name UpdateVoiceStatus
   * @summary 更新音色状态
   * @request PUT:/codewin/voice/update/{id}/{status}
   * @secure
   */
  updateVoiceStatus = (
    id: number,
    status: number,
    params: RequestParams = {},
  ) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/voice/update/${id}/${status}`,
      method: "PUT",
      secure: true,
      ...params,
    });
  /**
   * @description 获取当前登录用户的详细信息，需要登录
   *
   * @tags 用户管理
   * @name GetCurrentUserInfo
   * @summary 获取当前用户信息
   * @request GET:/codewin/user/info
   * @secure
   */
  getCurrentUserInfo = (params: RequestParams = {}) =>
    this.request<any, ResultUserVO>({
      path: `/codewin/user/info`,
      method: "GET",
      secure: true,
      ...params,
    });
  /**
   * @description 修改当前登录用户的信息，需要登录。如果某个字段为空则不修改该字段。
   *
   * @tags 用户管理
   * @name UpdateUserInfo
   * @summary 修改用户信息
   * @request PUT:/codewin/user/info
   * @secure
   */
  updateUserInfo = (data: UpdateUserRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/user/info`,
      method: "PUT",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过角色id更新角色信息
   *
   * @tags 角色管理
   * @name UpdateRole
   * @summary 用户更新角色信息
   * @request PUT:/codewin/role/update/{id}
   * @secure
   */
  updateRole = (id: number, data: RoleAddRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/role/update/${id}`,
      method: "PUT",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 修改聊天室信息
   *
   * @tags 聊天室管理
   * @name UpdateChatRoom
   * @summary 修改聊天室
   * @request PUT:/codewin/chatroom/update
   * @secure
   */
  updateChatRoom = (data: UpdateChatRoomRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/chatroom/update`,
      method: "PUT",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 管理员创建音色信息，带文件的需先上传文件
   *
   * @tags 音色管理
   * @name AddVoice
   * @summary 管理员创建音色信息
   * @request POST:/codewin/voice/add
   * @secure
   */
  addVoice = (data: VoiceAddDto, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/voice/add`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过用户名、邮箱、验证码和新密码进行密码重置
   *
   * @tags 用户管理
   * @name ResetPassword
   * @summary 重置密码
   * @request POST:/codewin/user/reset-password
   * @secure
   */
  resetPassword = (data: ResetPasswordRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/user/reset-password`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过用户名、密码、邮箱和验证码进行注册
   *
   * @tags 用户管理
   * @name Register
   * @summary 用户注册
   * @request POST:/codewin/user/register
   * @secure
   */
  register = (data: RegisterRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/user/register`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过用户名和密码进行登录
   *
   * @tags 用户管理
   * @name Login
   * @summary 账号密码登录
   * @request POST:/codewin/user/login
   * @secure
   */
  login = (data: LoginRequest, params: RequestParams = {}) =>
    this.request<any, ResultString>({
      path: `/codewin/user/login`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过邮箱和验证码进行登录
   *
   * @tags 用户管理
   * @name LoginByEmail
   * @summary 邮箱验证码登录
   * @request POST:/codewin/user/login/email
   * @secure
   */
  loginByEmail = (data: EmailLoginRequest, params: RequestParams = {}) =>
    this.request<any, ResultString>({
      path: `/codewin/user/login/email`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 通过提示词、角色名等信息创建角色信息，用户创建的为默认角色
   *
   * @tags 角色管理
   * @name ListRolesOnUser
   * @summary 用户创建角色信息
   * @request POST:/codewin/role/add
   * @secure
   */
  listRolesOnUser = (data: RoleAddRequest, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/role/add`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 将小说文本按照对话和非对话进行拆分，返回角色和句子的对象数组
   *
   * @tags 小说文本解析
   * @name ParseNovelText
   * @summary 解析小说文本
   * @request POST:/codewin/novel/parse
   * @secure
   */
  parseNovelText = (data: NovelParseRequest, params: RequestParams = {}) =>
    this.request<any, ResultListNovelCharacterSentence>({
      path: `/codewin/novel/parse`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * No description
   *
   * @tags 知识库管理
   * @name RetrieveKnowledgeBase
   * @summary 检索知识库
   * @request POST:/codewin/knowledgebase/retrieve
   * @secure
   */
  retrieveKnowledgeBase = (
    data: RetrieveKnowledgeBaseRequest,
    params: RequestParams = {},
  ) =>
    this.request<ResultRetrieveKnowledgeBaseVO, any>({
      path: `/codewin/knowledgebase/retrieve`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * No description
   *
   * @tags 知识库管理
   * @name CreateKnowledgeBase
   * @summary 创建知识库
   * @request POST:/codewin/knowledgebase/create
   * @secure
   */
  createKnowledgeBase = (
    data: CreateKnowledgeBaseRequest,
    params: RequestParams = {},
  ) =>
    this.request<ResultVoid, any>({
      path: `/codewin/knowledgebase/create`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 上传文件到Minio服务器
   *
   * @tags 文件管理
   * @name UploadFile
   * @summary 上传文件
   * @request POST:/codewin/file/upload
   * @secure
   */
  uploadFile = (
    data: {
      /**
       * 文件
       * @format binary
       */
      file: File;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultString>({
      path: `/codewin/file/upload`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.FormData,
      ...params,
    });
  /**
   * @description 向指定会话中插入一条新消息
   *
   * @tags 历史对话管理
   * @name InsertMessage
   * @summary 插入消息
   * @request POST:/codewin/conversation/message
   * @secure
   */
  insertMessage = (data: MessageInsertRequest, params: RequestParams = {}) =>
    this.request<any, ResultLong>({
      path: `/codewin/conversation/message`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 用户创建新的对话会话
   *
   * @tags 历史对话管理
   * @name CreateConversation
   * @summary 创建会话
   * @request POST:/codewin/conversation/create
   * @secure
   */
  createConversation = (
    data: ConversationCreateRequest,
    params: RequestParams = {},
  ) =>
    this.request<any, ResultConversationCreateVO>({
      path: `/codewin/conversation/create`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 按时间倒序分页获取聊天室消息，联表查询角色信息
   *
   * @tags 聊天室管理
   * @name GetChatRoomMessages
   * @summary 分页查询聊天室消息
   * @request POST:/codewin/chatroom/room/list
   * @secure
   */
  getChatRoomMessages = (
    data: ChatRoomMessagePageRequest,
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultChatRoomMessageVO>({
      path: `/codewin/chatroom/room/list`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * No description
   *
   * @tags 聊天室管理
   * @name InsertChatRoomMessage
   * @summary 插入聊天室消息
   * @request POST:/codewin/chatroom/message/insert
   * @secure
   */
  insertChatRoomMessage = (
    data: ChatRoomMessageInsertRequest,
    params: RequestParams = {},
  ) =>
    this.request<ResultLong, any>({
      path: `/codewin/chatroom/message/insert`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 创建新的聊天室
   *
   * @tags 聊天室管理
   * @name CreateChatRoom
   * @summary 创建聊天室
   * @request POST:/codewin/chatroom/create
   * @secure
   */
  createChatRoom = (data: CreateChatRoomRequest, params: RequestParams = {}) =>
    this.request<any, ResultLong>({
      path: `/codewin/chatroom/create`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 设置聊天室绑定的AI角色列表，会清除原有绑定
   *
   * @tags 聊天室管理
   * @name BindChatRoomRoles
   * @summary 绑定聊天室角色
   * @request POST:/codewin/chatroom/bind-roles
   * @secure
   */
  bindChatRoomRoles = (
    data: BindChatRoomRolesRequest,
    params: RequestParams = {},
  ) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/chatroom/bind-roles`,
      method: "POST",
      body: data,
      secure: true,
      type: ContentType.Json,
      ...params,
    });
  /**
   * @description 用户查询状态正常音色信息
   *
   * @tags 音色管理
   * @name PageVoiceList
   * @summary 用户查询音色信息
   * @request GET:/codewin/voice/list
   * @secure
   */
  pageVoiceList = (
    query: {
      /** 分页查询信息 */
      voicePageSearchDto: VoicePageSearchDto;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultVoiceVo>({
      path: `/codewin/voice/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 管理员查询音色信息
   *
   * @tags 音色管理
   * @name PageVoiceListAdmin
   * @summary 管理员查询音色信息
   * @request GET:/codewin/voice/list/admin
   * @secure
   */
  pageVoiceListAdmin = (
    query: {
      /** 分页查询信息 */
      voicePageSearchDto: VoicePageSearchDto;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultVoiceVo>({
      path: `/codewin/voice/list/admin`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 查询单条音色的详细信息
   *
   * @tags 音色管理
   * @name GetVoice
   * @summary 查询音色信息
   * @request GET:/codewin/voice/get/{id}
   * @secure
   */
  getVoice = (id: number, params: RequestParams = {}) =>
    this.request<any, ResultVoiceDetailVo>({
      path: `/codewin/voice/get/${id}`,
      method: "GET",
      secure: true,
      ...params,
    });
  /**
   * @description 向指定邮箱发送验证码
   *
   * @tags 用户管理
   * @name SendCode
   * @summary 获取邮箱验证码
   * @request GET:/codewin/user/code
   * @secure
   */
  sendCode = (
    query: {
      /** 邮箱地址 */
      email: string;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultVoid>({
      path: `/codewin/user/code`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 分页获取用户操作日志，支持按用户ID、操作类型筛选
   *
   * @tags 系统日志管理
   * @name GetUserOperationLogPage
   * @summary 分页查询用户操作日志
   * @request GET:/codewin/systemlog/operation-log/list
   * @secure
   */
  getUserOperationLogPage = (
    query: {
      /** 用户操作日志分页查询参数 */
      pageRequest: UserOperationLogPageRequest;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultUserOperationLogVO>({
      path: `/codewin/systemlog/operation-log/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 获取系统各项统计数据，包括卡片类数据和图表类数据
   *
   * @tags 统计数据管理
   * @name GetStatisticsOverview
   * @summary 获取系统统计数据
   * @request GET:/codewin/statistics/overview
   * @secure
   */
  getStatisticsOverview = (params: RequestParams = {}) =>
    this.request<any, ResultStatisticsVO>({
      path: `/codewin/statistics/overview`,
      method: "GET",
      secure: true,
      ...params,
    });
  /**
   * @description 通过页码、页数查询用户创建的角色信息
   *
   * @tags 角色管理
   * @name ListRoles
   * @summary 用户查询个人创建的角色信息
   * @request GET:/codewin/role/list
   * @secure
   */
  listRoles = (
    query: {
      /** 分页查询信息 */
      rolePageSearchDto: RolePageSearchDto;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultRoleVo>({
      path: `/codewin/role/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 查询默认的角色信息
   *
   * @tags 角色管理
   * @name ListDefaultRoles
   * @summary 查询默认的角色信息
   * @request GET:/codewin/role/list/default
   * @secure
   */
  listDefaultRoles = (
    query: {
      /** 分页查询信息 */
      rolePageSearchDto: RolePageSearchDto;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultRoleVo>({
      path: `/codewin/role/list/default`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 管理员查询角色列表
   *
   * @tags 角色管理
   * @name ListRolesOnAdmin
   * @summary 管理员查询角色列表
   * @request GET:/codewin/role/list/admin
   * @secure
   */
  listRolesOnAdmin = (
    query: {
      /** 分页查询信息 */
      rolePageSearchDto: RolePageSearchDto;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultRoleAdminVo>({
      path: `/codewin/role/list/admin`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * No description
   *
   * @tags 知识库管理
   * @name GetDefaultKnowledgeBaseList
   * @summary 获取默认知识库列表
   * @request GET:/codewin/knowledgebase/listdefault
   * @secure
   */
  getDefaultKnowledgeBaseList = (
    query?: {
      /**
       * 页码
       * @format int32
       * @default 1
       * @example 1
       */
      pageNo?: number;
      /**
       * 每页大小
       * @format int32
       * @default 10
       * @example 10
       */
      pageSize?: number;
    },
    params: RequestParams = {},
  ) =>
    this.request<ResultPageResultKnowledgeBaseListVO, any>({
      path: `/codewin/knowledgebase/listdefault`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * No description
   *
   * @tags 知识库管理
   * @name GetKnowledgeBaseList
   * @summary 用户分页查询个人知识库列表
   * @request GET:/codewin/knowledgebase/list
   * @secure
   */
  getKnowledgeBaseList = (
    query?: {
      /**
       * 页码
       * @format int32
       * @default 1
       * @example 1
       */
      pageNo?: number;
      /**
       * 每页大小
       * @format int32
       * @default 10
       * @example 10
       */
      pageSize?: number;
    },
    params: RequestParams = {},
  ) =>
    this.request<ResultPageResultKnowledgeBaseListVO, any>({
      path: `/codewin/knowledgebase/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 分页查询指定会话的消息列表，按消息顺序排列
   *
   * @tags 历史对话管理
   * @name ListMessages
   * @summary 查看会话消息
   * @request GET:/codewin/conversation/{conversationId}/messages
   * @secure
   */
  listMessages = (
    conversationId: number,
    query: {
      /** 分页参数 */
      pageParam: PageParam;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultMessageVO>({
      path: `/codewin/conversation/${conversationId}/messages`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 分页查询当前用户的历史会话列表，按最后消息时间倒序排列
   *
   * @tags 历史对话管理
   * @name ListConversations
   * @summary 查看历史会话列表
   * @request GET:/codewin/conversation/list
   * @secure
   */
  listConversations = (
    query: {
      /** 分页参数 */
      pageParam: PageParam;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultConversationListVO>({
      path: `/codewin/conversation/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 获取指定聊天室的角色列表
   *
   * @tags 聊天室管理
   * @name GetChatRoomRoles
   * @summary 获取聊天室角色列表
   * @request GET:/codewin/chatroom/{roomId}/roles
   * @secure
   */
  getChatRoomRoles = (roomId: number, params: RequestParams = {}) =>
    this.request<any, ResultListChatRoomRoleVO>({
      path: `/codewin/chatroom/${roomId}/roles`,
      method: "GET",
      secure: true,
      ...params,
    });
  /**
   * @description 基于聊天历史和可用角色，使用AI分析推荐参与后续对话的角色列表
   *
   * @tags 聊天室管理
   * @name GetChatRoomRoleParticipation
   * @summary 获取聊天室角色参与建议
   * @request GET:/codewin/chatroom/role-participation/{roomId}
   * @secure
   */
  getChatRoomRoleParticipation = (roomId: number, params: RequestParams = {}) =>
    this.request<any, ResultListChatRoomRoleParticipationVO>({
      path: `/codewin/chatroom/role-participation/${roomId}`,
      method: "GET",
      secure: true,
      ...params,
    });
  /**
   * @description 分页获取当前用户创建的聊天室列表，支持多条件搜索
   *
   * @tags 聊天室管理
   * @name GetMyChatRoomList
   * @summary 分页查询聊天室列表
   * @request GET:/codewin/chatroom/list
   * @secure
   */
  getMyChatRoomList = (
    query: {
      /** 聊天室分页查询参数 */
      pageParam: ChatRoomPageRequest;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultPageResultChatRoomVO>({
      path: `/codewin/chatroom/list`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 将语音文件URL转换为文本
   *
   * @tags 语音服务
   * @name Transcribe
   * @summary 语音转文本
   * @request GET:/codewin/ai/speech/transcribe
   * @secure
   */
  transcribe = (
    query: {
      /** 音频文件URL */
      url: string;
      /**
       * 语言代码，例如：zh表示中文，en表示英文，默认为zh
       * @default "zh"
       */
      language?: string;
    },
    params: RequestParams = {},
  ) =>
    this.request<any, ResultString>({
      path: `/codewin/ai/speech/transcribe`,
      method: "GET",
      query: query,
      secure: true,
      ...params,
    });
  /**
   * @description 管理员删除音色信息，只能删除已禁用的音色
   *
   * @tags 音色管理
   * @name DeleteVoice
   * @summary 删除音色信息
   * @request DELETE:/codewin/voice/delete/{id}
   * @secure
   */
  deleteVoice = (id: number, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/voice/delete/${id}`,
      method: "DELETE",
      secure: true,
      ...params,
    });
  /**
   * @description 通过角色id删除角色信息
   *
   * @tags 角色管理
   * @name DeleteRole
   * @summary 用户删除角色信息
   * @request DELETE:/codewin/role/delete/{id}
   * @secure
   */
  deleteRole = (id: number, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/role/delete/${id}`,
      method: "DELETE",
      secure: true,
      ...params,
    });
  /**
   * No description
   *
   * @tags 知识库管理
   * @name DeleteKnowledgeBase
   * @summary 删除知识库
   * @request DELETE:/codewin/knowledgebase/{id}
   * @secure
   */
  deleteKnowledgeBase = (id: number, params: RequestParams = {}) =>
    this.request<ResultVoid, any>({
      path: `/codewin/knowledgebase/${id}`,
      method: "DELETE",
      secure: true,
      ...params,
    });
  /**
   * @description 删除指定的会话
   *
   * @tags 历史对话管理
   * @name DeleteConversation
   * @summary 删除会话
   * @request DELETE:/codewin/conversation/{conversationId}
   * @secure
   */
  deleteConversation = (conversationId: number, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/conversation/${conversationId}`,
      method: "DELETE",
      secure: true,
      ...params,
    });
  /**
   * @description 删除指定的聊天室
   *
   * @tags 聊天室管理
   * @name DeleteChatRoom
   * @summary 删除聊天室
   * @request DELETE:/codewin/chatroom/{id}
   * @secure
   */
  deleteChatRoom = (id: number, params: RequestParams = {}) =>
    this.request<any, ResultBoolean>({
      path: `/codewin/chatroom/${id}`,
      method: "DELETE",
      secure: true,
      ...params,
    });
}
